package com.jiaai.cloud.system.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author 佳爱网络科技
 * @since 2017-08-28
 */
@TableName("t_exchange")
public class TExchange extends Model<TExchange> {

    private static final long serialVersionUID = 1L;

    /**
     * 编号Id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 体现比例金额
     */
	private Double money;
    /**
     * 体现对应的钻石
     */
	private Double masonry;
    /**
     * 体对应的金币
     */
	private Double gold;
    /**
     * 体现金币对应的钻石
     */
	private Double goldMasonry;
	/**
	 * 创建时间
	 */
	@JSONField(format = "YYYY-MM-dd")
	private Date creatTime;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Double getMoney() {
		return money;
	}

	public void setMoney(Double money) {
		this.money = money;
	}

	public Double getMasonry() {
		return masonry;
	}

	public void setMasonry(Double masonry) {
		this.masonry = masonry;
	}

	public Double getGold() {
		return gold;
	}

	public void setGold(Double gold) {
		this.gold = gold;
	}

	public Double getGoldMasonry() {
		return goldMasonry;
	}

	public void setGoldMasonry(Double goldMasonry) {
		this.goldMasonry = goldMasonry;
	}

	public Date getCreatTime() {
		return creatTime;
	}

	public void setCreatTime(Date creatTime) {
		this.creatTime = creatTime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
